{% extends "FOSUserBundle::layout.html.twig" %}	
{% block fos_user_content %}


{# app/Resources/views/layout.html.twig #}

{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
    Connecté en tant que {{ app.user.username }} - <a href="{{ path('fos_user_security_logout') }}">Déconnexion</a>
{% else %}
    <a href="{{ path('fos_user_security_login') }}"></a>
{% endif %}
    
        <form method="post" action="{{ path("fos_user_security_check") }}" id="login-form">
              <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
    <p>Nom de l'utilisateur<br />
        <input type="input" class="text" autofocus="autofocus" style="text-transform:lowercase;" name="_username" value="{{ last_username }}" required="required"/>
        <br /></p>
    <p>Mot de passe<br />    
        <input type="password" name="_password" class="password" /></p>
      
    <p><input type="submit" name="_submit" value="Connexion" class="gh-button icon key" /></p>
<a href="{{path('fos_user_change_password')}}">changer le mot de passe ?</a>
  </form>


{% endblock fos_user_content %}
                    		